﻿@model IEnumerable<Article>
@{Ajax.Dna().Widget()
       .UserPreferences(@<text>
    @Html.Partial("_UserPreferencesView", item)
    </text>)
.Preview(@<text>
    <p>
        @Html.Global("RES_PREVIEW_NOTSUPPORT")
    </p>
    </text>)
    .Content(@<text>
    @if (Model != null)
    {
        var viewdata = new ViewDataDictionary();
        viewdata["TextLen"] = item.UserPreferences["TextLen"];
        viewdata["ShowAuthor"] = item.UserPreferences["ShowAuthor"];
        viewdata["ShowDate"] = item.UserPreferences["ShowDate"];
        @Html.Partial(item.GetString("Layout"), Model, viewdata)
    }
    </text>)
       .Render();
}
